<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%condition_language}}".
 *
 * @property integer $id
 * @property integer $solution_id
 * @property integer $is_whitelist
 * @property integer $language_id
 * @property string $code
 * @property string $language
 * @property integer $status
 * @property string $last_update
 */
class ConditionLanguage extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%condition_language}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['solution_id', 'language_id'], 'required'],
            [['solution_id', 'is_whitelist', 'language_id', 'status'], 'integer'],
            [['last_update'], 'safe'],
            [['code'], 'string', 'max' => 50],
            [['language'], 'string', 'max' => 30]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'solution_id' => 'Solution ID',
            'is_whitelist' => 'Is Whitelist',
            'language_id' => 'Language ID',
            'code' => 'Code',
            'language' => 'Language',
            'status' => 'Status',
            'last_update' => 'Last Update',
        ];
    }
}
